package io.itit.ecp.admin.server.mapper;

import icu.mhb.mybatisplus.plugln.base.mapper.JoinBaseMapper;
import io.itit.ecp.admin.server.entity.CarbonSinkDataEntity;
import io.itit.ecp.admin.server.entity.extend.CarbonSinkDataExtEntity;
import io.itit.grass.common.server.dto.ParamDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：碳汇数据模型类
 * @Date：Create by 2023-12-01 10:45:08
 */
public interface CarbonSinkDataMapper extends JoinBaseMapper<CarbonSinkDataEntity> {

    CarbonSinkDataExtEntity sum(@Param("dto") ParamDto dto);

    List<CarbonSinkDataExtEntity> sumGroupType(@Param("dto") ParamDto dto);

    List<CarbonSinkDataExtEntity> sumGroupSolidifyDate(@Param("dto") ParamDto dto);

    List<CarbonSinkDataExtEntity> sumGroupSolidifyDateAndType(@Param("dto") ParamDto dto);

}
